package de.andreavicentini.teatralia.pages.members;

import org.magiclabs.htmlx.Area;
import org.magiclabs.htmlx.PropertiesTextStructure;
import org.magiclabs.htmlx.TextStructure;

import de.andreavicentini.teatralia.generate.Layout;
import de.andreavicentini.teatralia.generate.Members;
import de.andreavicentini.teatralia.pages.TeatraliaPage;

public class MembersPage extends TeatraliaPage {

	private final MembersModel members;

	public enum Keys implements TextStructure.TextKey {
		title, nationality, intro, subtitle,
		;
	}
	
	public MembersPage(Area area, MembersModel members) {
		super(new Members(), Keys.title, Keys.subtitle, area.getLayout(), area, new PropertiesTextStructure(MembersPage.class, "members"));
		this.members = members;
		
	}
	
	public Iterable<Member> iterateMembers() {
		return this.members;
	}
	
	
}
